package cn.baimo.pojo;

import java.io.Serializable;

/**
 * ClassName: User
 * Description: 用户类
 * date: 2020/8/8 0008 18:48:27
 * uid	        varchar(255)	主键	用户id/账号
 * name	        varchar(255)	非空	用户昵称
 * email	    varchar(255)		邮箱
 * phone	    char(11)		    手机号
 * pwd	        varchar(255)	非空	密码
 * regDataTime	datetime	    非空	注册时间
 * level	    int		            账号权限等级
 *
 * @author BaiMo
 * @since JDK 1.8
 */
public class User implements Serializable {
    private String uid;//用户id
    private String name;//用户昵称
    private String email;//邮箱
    private String phone;//手机号
    private String pwd;//密码
    private String regDataTime;//注册时间
    private int level;//账号权限等级
    private UserInfo userInfo;//用户信息

    public User(String uid, String name, String email, String phone, String pwd, String regDataTime, int level, UserInfo userInfo) {
        this.uid = uid;
        this.name = name;
        this.email = email;
        this.phone = phone;
        this.pwd = pwd;
        this.regDataTime = regDataTime;
        this.level = level;
        this.userInfo = userInfo;
    }

    public User() {
    }

    @Override
    public String toString() {
        return "User{" +
                "uid='" + uid + '\'' +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                ", phone='" + phone + '\'' +
                ", pwd='" + pwd + '\'' +
                ", regDataTime='" + regDataTime + '\'' +
                ", level=" + level +
                ", userInfo=" + userInfo +
                '}';
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getRegDataTime() {
        return regDataTime;
    }

    public void setRegDataTime(String regDataTime) {
        this.regDataTime = regDataTime;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }
}
